<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.11"/>
<title>ShipCAD: ShipCAD::LightedFaceShader Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { init_search(); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">ShipCAD
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.11 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="namespaces.html"><span>Namespaces</span></a></li>
      <li class="current"><a href="annotated.html"><span>Classes</span></a></li>
      <li><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="annotated.html"><span>Class&#160;List</span></a></li>
      <li><a href="classes.html"><span>Class&#160;Index</span></a></li>
      <li><a href="hierarchy.html"><span>Class&#160;Hierarchy</span></a></li>
      <li><a href="functions.html"><span>Class&#160;Members</span></a></li>
    </ul>
  </div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="namespaceShipCAD.html">ShipCAD</a></li><li class="navelem"><a class="el" href="classShipCAD_1_1LightedFaceShader.html">LightedFaceShader</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="classShipCAD_1_1LightedFaceShader-members.html">List of all members</a>  </div>
  <div class="headertitle">
<div class="title">ShipCAD::LightedFaceShader Class Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p><code>#include &lt;<a class="el" href="shader_8h_source.html">shader.h</a>&gt;</code></p>
<div class="dynheader">
Inheritance diagram for ShipCAD::LightedFaceShader:</div>
<div class="dyncontent">
 <div class="center">
  <img src="classShipCAD_1_1LightedFaceShader.png" usemap="#ShipCAD::LightedFaceShader_map" alt=""/>
  <map id="ShipCAD::LightedFaceShader_map" name="ShipCAD::LightedFaceShader_map">
<area href="classShipCAD_1_1FaceShader.html" alt="ShipCAD::FaceShader" shape="rect" coords="0,112,181,136"/>
<area href="classShipCAD_1_1Shader.html" alt="ShipCAD::Shader" shape="rect" coords="0,56,181,80"/>
</map>
 </div></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:a2af0e951890116c518c54c8afe978a3a"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classShipCAD_1_1LightedFaceShader.html#a2af0e951890116c518c54c8afe978a3a">LightedFaceShader</a> (<a class="el" href="classShipCAD_1_1Viewport.html">Viewport</a> *vp)</td></tr>
<tr class="separator:a2af0e951890116c518c54c8afe978a3a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6ce7e752639fd1c8dd12b721279ac814"><td class="memItemLeft" align="right" valign="top">virtual&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classShipCAD_1_1LightedFaceShader.html#a6ce7e752639fd1c8dd12b721279ac814">~LightedFaceShader</a> ()</td></tr>
<tr class="separator:a6ce7e752639fd1c8dd12b721279ac814"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0a5515fd6bcaf380de2ff15b42261f83"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classShipCAD_1_1LightedFaceShader.html#a0a5515fd6bcaf380de2ff15b42261f83">setMatrices</a> (const QMatrix4x4 &amp;proj, const QMatrix4x4 &amp;view, const QMatrix4x4 &amp;world)</td></tr>
<tr class="separator:a0a5515fd6bcaf380de2ff15b42261f83"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:abd4fe9c01a7e09aa46f3017f014018a8"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classShipCAD_1_1LightedFaceShader.html#abd4fe9c01a7e09aa46f3017f014018a8">renderMesh</a> (QColor meshColor, QVector&lt; QVector3D &gt; &amp;vertices, QVector&lt; QVector3D &gt; &amp;normals)</td></tr>
<tr class="separator:abd4fe9c01a7e09aa46f3017f014018a8"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header pub_methods_classShipCAD_1_1FaceShader"><td colspan="2" onclick="javascript:toggleInherit('pub_methods_classShipCAD_1_1FaceShader')"><img src="closed.png" alt="-"/>&#160;Public Member Functions inherited from <a class="el" href="classShipCAD_1_1FaceShader.html">ShipCAD::FaceShader</a></td></tr>
<tr class="memitem:a67bd0296f829456035a829b95f1befb7 inherit pub_methods_classShipCAD_1_1FaceShader"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classShipCAD_1_1FaceShader.html#a67bd0296f829456035a829b95f1befb7">FaceShader</a> (<a class="el" href="classShipCAD_1_1Viewport.html">Viewport</a> *vp)</td></tr>
<tr class="separator:a67bd0296f829456035a829b95f1befb7 inherit pub_methods_classShipCAD_1_1FaceShader"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:afbd21e69afb094aea484144be9ac1fbd inherit pub_methods_classShipCAD_1_1FaceShader"><td class="memItemLeft" align="right" valign="top">virtual&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classShipCAD_1_1FaceShader.html#afbd21e69afb094aea484144be9ac1fbd">~FaceShader</a> ()</td></tr>
<tr class="separator:afbd21e69afb094aea484144be9ac1fbd inherit pub_methods_classShipCAD_1_1FaceShader"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header pub_methods_classShipCAD_1_1Shader"><td colspan="2" onclick="javascript:toggleInherit('pub_methods_classShipCAD_1_1Shader')"><img src="closed.png" alt="-"/>&#160;Public Member Functions inherited from <a class="el" href="classShipCAD_1_1Shader.html">ShipCAD::Shader</a></td></tr>
<tr class="memitem:a36bc24054e22fb965b04dae9a2b76eb7 inherit pub_methods_classShipCAD_1_1Shader"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classShipCAD_1_1Shader.html#a36bc24054e22fb965b04dae9a2b76eb7">Shader</a> (<a class="el" href="classShipCAD_1_1Viewport.html">Viewport</a> *vp)</td></tr>
<tr class="separator:a36bc24054e22fb965b04dae9a2b76eb7 inherit pub_methods_classShipCAD_1_1Shader"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aff01df87e8a102f270b5b135a295e59d inherit pub_methods_classShipCAD_1_1Shader"><td class="memItemLeft" align="right" valign="top">virtual&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classShipCAD_1_1Shader.html#aff01df87e8a102f270b5b135a295e59d">~Shader</a> ()</td></tr>
<tr class="separator:aff01df87e8a102f270b5b135a295e59d inherit pub_methods_classShipCAD_1_1Shader"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a011fae279e362f548e8c4e4b35b7291e inherit pub_methods_classShipCAD_1_1Shader"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classShipCAD_1_1Shader.html#a011fae279e362f548e8c4e4b35b7291e">initialize</a> (const char *vertexShaderSource, const char *fragmentShaderSource, std::vector&lt; std::string &gt; uniforms, std::vector&lt; std::string &gt; attributes)</td></tr>
<tr class="separator:a011fae279e362f548e8c4e4b35b7291e inherit pub_methods_classShipCAD_1_1Shader"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac8faec958f9d5806510d39be5f512c8e inherit pub_methods_classShipCAD_1_1Shader"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classShipCAD_1_1Shader.html#ac8faec958f9d5806510d39be5f512c8e">addUniform</a> (const std::string &amp;name)</td></tr>
<tr class="separator:ac8faec958f9d5806510d39be5f512c8e inherit pub_methods_classShipCAD_1_1Shader"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6a298be357d7860d859aedbe397b81b9 inherit pub_methods_classShipCAD_1_1Shader"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classShipCAD_1_1Shader.html#a6a298be357d7860d859aedbe397b81b9">addAttribute</a> (const std::string &amp;name)</td></tr>
<tr class="separator:a6a298be357d7860d859aedbe397b81b9 inherit pub_methods_classShipCAD_1_1Shader"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a00c06ead1e413d5d5ecbced82478f753 inherit pub_methods_classShipCAD_1_1Shader"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classShipCAD_1_1Shader.html#a00c06ead1e413d5d5ecbced82478f753">bind</a> ()</td></tr>
<tr class="separator:a00c06ead1e413d5d5ecbced82478f753 inherit pub_methods_classShipCAD_1_1Shader"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0f41d7628964320846101cf5938a928e inherit pub_methods_classShipCAD_1_1Shader"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classShipCAD_1_1Shader.html#a0f41d7628964320846101cf5938a928e">release</a> ()</td></tr>
<tr class="separator:a0f41d7628964320846101cf5938a928e inherit pub_methods_classShipCAD_1_1Shader"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="inherited"></a>
Additional Inherited Members</h2></td></tr>
<tr class="inherit_header pro_attribs_classShipCAD_1_1Shader"><td colspan="2" onclick="javascript:toggleInherit('pro_attribs_classShipCAD_1_1Shader')"><img src="closed.png" alt="-"/>&#160;Protected Attributes inherited from <a class="el" href="classShipCAD_1_1Shader.html">ShipCAD::Shader</a></td></tr>
<tr class="memitem:a0ee19c28f4fd4260b70095ccd433d546 inherit pro_attribs_classShipCAD_1_1Shader"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classShipCAD_1_1Viewport.html">Viewport</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classShipCAD_1_1Shader.html#a0ee19c28f4fd4260b70095ccd433d546">_viewport</a></td></tr>
<tr class="separator:a0ee19c28f4fd4260b70095ccd433d546 inherit pro_attribs_classShipCAD_1_1Shader"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3967404471db3284a2448c4a39b8c230 inherit pro_attribs_classShipCAD_1_1Shader"><td class="memItemLeft" align="right" valign="top">QOpenGLShaderProgram *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classShipCAD_1_1Shader.html#a3967404471db3284a2448c4a39b8c230">_program</a></td></tr>
<tr class="separator:a3967404471db3284a2448c4a39b8c230 inherit pro_attribs_classShipCAD_1_1Shader"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5c98e4ae6e3403f179a3fcf204b34baf inherit pro_attribs_classShipCAD_1_1Shader"><td class="memItemLeft" align="right" valign="top">std::map&lt; std::string, GLuint &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classShipCAD_1_1Shader.html#a5c98e4ae6e3403f179a3fcf204b34baf">_uniforms</a></td></tr>
<tr class="separator:a5c98e4ae6e3403f179a3fcf204b34baf inherit pro_attribs_classShipCAD_1_1Shader"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af2f710f7b4d792fea09ddd11ab0cdf25 inherit pro_attribs_classShipCAD_1_1Shader"><td class="memItemLeft" align="right" valign="top">std::map&lt; std::string, GLuint &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classShipCAD_1_1Shader.html#af2f710f7b4d792fea09ddd11ab0cdf25">_attributes</a></td></tr>
<tr class="separator:af2f710f7b4d792fea09ddd11ab0cdf25 inherit pro_attribs_classShipCAD_1_1Shader"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock">
<p>Definition at line <a class="el" href="shader_8h_source.html#l00133">133</a> of file <a class="el" href="shader_8h_source.html">shader.h</a>.</p>
</div><h2 class="groupheader">Constructor &amp; Destructor Documentation</h2>
<a class="anchor" id="a2af0e951890116c518c54c8afe978a3a"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">LightedFaceShader::LightedFaceShader </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classShipCAD_1_1Viewport.html">Viewport</a> *&#160;</td>
          <td class="paramname"><em>vp</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">explicit</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Definition at line <a class="el" href="shader_8cpp_source.html#l00291">291</a> of file <a class="el" href="shader_8cpp_source.html">shader.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="a6ce7e752639fd1c8dd12b721279ac814"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual ShipCAD::LightedFaceShader::~LightedFaceShader </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Definition at line <a class="el" href="shader_8h_source.html#l00140">140</a> of file <a class="el" href="shader_8h_source.html">shader.h</a>.</p>

</div>
</div>
<h2 class="groupheader">Member Function Documentation</h2>
<a class="anchor" id="abd4fe9c01a7e09aa46f3017f014018a8"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void LightedFaceShader::renderMesh </td>
          <td>(</td>
          <td class="paramtype">QColor&#160;</td>
          <td class="paramname"><em>meshColor</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">QVector&lt; QVector3D &gt; &amp;&#160;</td>
          <td class="paramname"><em>vertices</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">QVector&lt; QVector3D &gt; &amp;&#160;</td>
          <td class="paramname"><em>normals</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Implements <a class="el" href="classShipCAD_1_1FaceShader.html#adb71f051d1481058fe905f985a7166c1">ShipCAD::FaceShader</a>.</p>

<p>Definition at line <a class="el" href="shader_8cpp_source.html#l00314">314</a> of file <a class="el" href="shader_8cpp_source.html">shader.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="a0a5515fd6bcaf380de2ff15b42261f83"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void LightedFaceShader::setMatrices </td>
          <td>(</td>
          <td class="paramtype">const QMatrix4x4 &amp;&#160;</td>
          <td class="paramname"><em>proj</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const QMatrix4x4 &amp;&#160;</td>
          <td class="paramname"><em>view</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const QMatrix4x4 &amp;&#160;</td>
          <td class="paramname"><em>world</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Definition at line <a class="el" href="shader_8cpp_source.html#l00306">306</a> of file <a class="el" href="shader_8cpp_source.html">shader.cpp</a>.</p>

</div>
</div>
<hr/>The documentation for this class was generated from the following files:<ul>
<li>ShipCADlib/<a class="el" href="shader_8h_source.html">shader.h</a></li>
<li>ShipCADlib/<a class="el" href="shader_8cpp_source.html">shader.cpp</a></li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Sun Feb 25 2018 15:36:00 for ShipCAD by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.11
</small></address>
</body>
</html>
